package com.mashibing.controller;

import com.mashibing.mapper.DriverUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private DriverUserMapper mapper;

    @GetMapping("/mysqlSelectTest/{cityCode}")
    public String mysqlSelectTest(@PathVariable("cityCode") String cityCode) {
        Integer i = mapper.selectDriverUserCount(cityCode);
        return "结果是" + i;
    }
}
